package schemadesignsimplefactory;

public class Client {
	
	public static void main(String[] args) {
		
		Operation operation = OperationFactory.createOperate("+");
		
		if(operation == null) {
			System.out.println("operation is error");
		}
		
		operation.set_numberA(1);
		operation.set_numberB(2);
		
		double result = operation.GetResult();
		
		System.out.println(result);
	}

}
